home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_d / qrep10b.zip / QRMD.PAS < prev    next >
Pascal/Delphi Source File  |  1996-04-10  |  1KB  |  52 lines

  1. unit QRMD;
  2. {
  3.  QuickReport Master/detail template
  4.  - Connect a datasource to the QuickReport component
  5.  - Connect a datasource to the DetailLink component
  6.  - Make sure a master/detail relationship is set up between the two tables
  7.  - Put QRDBText components on the bands
  8. }
  9.  
  10. interface
  11.  
  12. uses
  13.   Wintypes,winprocs, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  14.   Quickrep, StdCtrls, ExtCtrls, DB, DBTables;
  15.  
  16. type
  17.   TQRMDTemplate = class(TForm)
  18.     QuickReport: TQuickReport;
  19.     Title: TQRBand;
  20.     PageHeader: TQRBand;
  21.     Master: TQRBand;
  22.     PageNumber: TQRSysData;
  23.     PageFooter: TQRBand;
  24.     QRDateTime: TQRSysData;
  25.     QRSysData1: TQRSysData;
  26.     QRLabel1: TQRLabel;
  27.     QRLabel2: TQRLabel;
  28.     QRLabel3: TQRLabel;
  29.     Detail: TQRBand;
  30.     QRLabel4: TQRLabel;
  31.     DetailFooter: TQRBand;
  32.     QRLabel5: TQRLabel;
  33.     DetailLink: TQRDetailLink;
  34.     Table1: TTable;
  35.     DataSource1: TDataSource;
  36.     Table2: TTable;
  37.     DataSource2: TDataSource;
  38.   private
  39.     { Private declarations }
  40.   public
  41.     { Public declarations }
  42.   end;
  43.  
  44. var
  45.   QRMDTemplate: TQRMDTemplate;
  46.  
  47. implementation
  48.  
  49. {$R *.DFM}
  50.  
  51. end.
  52.